import { Home } from 'home-model.js';

var home = new Home();

Page({

    data:{
      loadingHidden:false
    },
    onLoad:function()
    {
      this._loadData();
    },
    _loadData:function(callback)
    {
      var that=this;
      //获得banner信息
      home.getBannerData((data)=>{
        that.setData({
          bannerArr:data,
        });
      });
    }
})